-
Notifications
You must be signed in to change notification settings - Fork 2k
Fix SSH agent forwarding to agentless nodes #22567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix SSH agent forwarding to agentless nodes #22567
Conversation
0a84a4b to
028c938
Compare
734b0c3 to
817bf94
Compare
817bf94 to
8588683
Compare
jakule
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@capnspacehook The fix seems to work fine. Can we add some test coverage to prevent regression?
|
@capnspacehook Ping |
When connecting to unregistered OpenSSH nodes, the SSH agent is always forwarded. When connecting to registered OpenSSH (agentless) nodes however, the SSH agent doesn't *need* to be forwarded, so only do so if the user explicitly asks to.
8588683 to
790f393
Compare
790f393 to
5817297
Compare
|
@jakule updated agentless integration test to test SSH agent forwarding as well. |
xacrimon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm once existing discussions are resolved
5817297 to
f9f8820
Compare
Follow up PR to #21953.
When connecting to unregistered OpenSSH nodes, the SSH agent is always
forwarded. When connecting to registered OpenSSH (agentless) nodes
however, the SSH agent doesn't need to be forwarded, so only do so
if the user explicitly asks to.